package com.avantis.common.repository;

import com.avantis.common.entity.WareHouse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
* @Description:    java类作用描述
* @Author:         kirago
* @CreateDate:     2019/1/2 7:25 PM
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
@Repository
public interface WareHouseRepository extends JpaRepository<WareHouse, Integer>, JpaSpecificationExecutor {

    Optional<WareHouse> findById(Integer integer);

    WareHouse findByWarehouseCode(String warehousecode);

}
